{extend name="public/base"}
{block name='main'}
<!-- 主体开始 -->
<div class="layui-container fly-marginTop">
  <div class="fly-panel minh">
    {volist name="cate" id="vo"}
      <div class="fly-panel-title" >
        <a href="{:url('doc/doclist',array('id'=>$vo['id']))}">{$vo.name}</a>
      </div>
      <div class="fly-panel-main catecon">
        {volist name="vo.tcate" id="vo1"}
        {if $vo1['id'] != 0 }
            <a class="layui-btn layui-btn-primary" href="{:url('doc/doclist',array('id'=>$vo1['id']))}">{$vo1.name}
              <span class="layui-badge layui-bg-gray">{$vo1.id|catecount}</span></a>
        {/if}
        {/volist}
      </div>
    {/volist}
  </div>

</div>
<!-- 主体结束 -->
<script>
  layui.config({
    version: "3.0.0"
    ,base: '__PUBLIC__/theme/blueideal/mods/' //这里实际使用时，建议改成绝对路径
  }).extend({
    fly: 'index'
  }).use('fly');
</script>
{/block}